﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MotionControl.Modules.LightSource.LightControl
{
    /// <summary>
    /// Add By Zgz
    /// </summary>
    public interface IJFLight
    {
        /// <summary>
        /// 初始化光源控制器
        /// </summary>
        /// <returns></returns>
        bool InitLight();
        /// <summary>
        /// 设定指定通道亮度
        /// </summary>
        /// <param name="chanel"></param>
        /// <param name="lightVal"></param>
        /// <returns></returns>
        bool SetIntensity(int chanel,int lightVal);
        /// <summary>
        /// 获取指定通道亮度值
        /// </summary>
        /// <param name="chanel"></param>
        /// <param name="lightVal"></param>
        /// <returns></returns>
        bool GetIntensity(int chanel, out int lightVal);
        /// <summary>
        /// 获取异常错误信息
        /// </summary>
        /// <returns></returns>
        string GetErrorInfo();
        /// <summary>
        /// 关闭通道
        /// </summary>
        /// <returns></returns>
        bool TurnOffChannel(int num);
        /// <summary>
        /// 打开通道
        /// </summary>
        /// <returns></returns>
        bool TurnOnChannel(int num);
        /// <summary>
        /// 断开连接
        /// </summary>
        /// <returns></returns>
        /// 
        bool DisConnect();

        /// <summary>
        /// 当前光源型号
        /// </summary>
        /// <returns></returns>
        string type();

        /// <summary>
        /// 当前光源com口
        /// </summary>
        /// <returns></returns>
        string comIndex();

        /// <summary>
        /// 当前光源的通道数
        /// </summary>
        /// <returns></returns>
        int channels();

    }
}
